<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateLogPlayerTransferTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('log_player_transfer', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->integer('main_game_plats_id')->nullable()->comment('平台id,如主平台为0即为通用分');
			$table->integer('player_id')->comment('玩家id');
			$table->string('transferid')->comment('本平台单号id');
			$table->string('plattransferid')->nullable()->default('')->comment('游戏平台单号');
			$table->integer('money');
			$table->integer('direction')->comment('1:转入，2=转出');
			$table->integer('status')->comment('1=成功,0=失败,-1=未知');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('log_player_transfer');
	}

}
